﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="NJL.WebManage.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>农家乐网</title>
    <meta id="Keywords" name="Keywords" content="农家乐网" />
    <meta id="Description" name="Description" content="农家乐网" />
    <script src="Scripts/md5.js" type="text/javascript"></script>
    <script type="text/javascript">
    function check(){
    
        var pwd = document.getElementById("<%=txtPwd.ClientID %>").value;
        document.getElementById("<%=HiddenField1.ClientID %>").value = md5(pwd);
    }
    </script>
    <style type="text/css">
        *
        {
            margin:0; padding:0;
            font-size:12px;
            color:#666666;
        }
        .inputStyle
        {
            width:160px;
            height:18px;
            border: solid 1px #aaaaaa;
        }
        .buttonStyle
        {
            color:#ffffff;
            width:80px;
            height:22px;
            border: solid 1px #aaaaaa;
            background-color:#76c227;
        }
        tr
        {
            height:24px;
            line-height:24px;
            vertical-align:middle;
        }
    </style>
</head>
<body style="background-color:#f9f9f9">
    <form id="form1" runat="server">
    <div style="margin:0 auto; width:100%; height:auto; background-color:#ffffff;">
        <div style="margin:0 auto; width:1003px; height:80px;">
            <a href="/" title="农家乐网" style="float:left; width:221px; height:47px; background:url(images/login_logo.jpg) 0px 0px no-repeat; margin:30px 0px 0px 10px"></a>
        </div>
    </div>
    <div style="margin:0 auto; width:100%; height:8px; background:url(images/login_nav_bg.gif) 0px 0px repeat-x;">
    </div>
    <div style="margin:0 auto; margin-top:5px; width:1000px; height:500px; background:url(images/login_main_bg.jpg) 0px 0px no-repeat">
        <div style="float:left; margin:15px 0px 0px 15px">
            <table align="center" cellspacing="0">
            <tr>
                <td>
                    用户名：</td>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="inputStyle"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    密 &nbsp; 码：</td>
                <td>
                    <asp:TextBox ID="txtPwd" runat="server" TextMode="Password" CssClass="inputStyle"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    验证码：</td>
                <td>
                    <asp:TextBox ID="txtCheckCode" runat="server" Width="60px" CssClass="inputStyle" MaxLength="4"></asp:TextBox>&nbsp;<img style="width:46px; height:18px; border:0;" src="ValidateCode.ashx" onclick="this.src=this.src+'?'" alt="换一张？" title="换一张？" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Button CssClass="buttonStyle" ID="btnLogin" runat="server" Text="登陆" onclick="btnLogin_Click" OnClientClick="return check()" />
                    &nbsp;<input id="Reset1" type="reset" value="重置" class="buttonStyle" />
                </td>
            </tr>
            <asp:HiddenField ID="HiddenField1" runat="server" />
        </table>
        </div>
    </div>
    <div style="margin:0 auto; width:1000px; height:auto;">
        <div style="margin:0 auto; margin-top:10px; width:560px; height:70px; background:url(images/login_bottom.jpg) 0px 0px no-repeat;"></div>
    </div>
    </form>
</body>
</html>
